<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace app\common\jsmApi;

/**
 * Description of User
 * 调用JSM服务 - 粉丝相关业务
 * @author leo.xie
 */
class User extends Base{
    
    /**
     * 获取粉丝基本信息
     * @param type $openid
     * @return type
     */
    public function getInfo($openid) {
        $sendUrl = "/Api/WxFans/getFansInfo/";
        $postData = ['openid' => $openid];
        return $this->send($sendUrl, $postData);
    }

    /**
     * 获取公众号下粉丝
     * @param type $nextOpenid  哪个公众号
     * @return type
     */
    public function getUsers($openid) {
        $sendUrl = "";
        $postData = ['openid' => $openid];
        return $this->send($sendUrl, $postData);
    }

    public function updateRemark($openid) {
        $sendUrl = "";
        $postData = ['openid' => $openid];
        return $this->send($sendUrl, $postData);
    }
    
    public function uploadPic($postData) {
        $sendUrl = "/SoaApi/Images/getImageUrl/";
        return $this->send($sendUrl, $postData);
    }
    
    public function sendBookingMsgForAll($postData) {
        $sendUrl = "/Koomapi/KoomApi/sendBookingMsgForAll/";
        return $this->send($sendUrl, $postData);
    }
    
    public function sendBookingMsgByUnionid($postData) {
        $sendUrl = "/Koomapi/KoomApi/sendBookingMsgByUnionid/";
        return $this->send($sendUrl, $postData);
    }
}
